package com.xcity.pomelo.response;

import com.xcity.db.entity.Player;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class ActivityCharmTopInfoResponse extends Response {

	// 第一名玩家信息
	private long id;
	private String name;
	private String icon;
	private byte sex;
	private int level;
	// 剩余祝贺次数
	private int num;
	
	public ActivityCharmTopInfoResponse(int serial, Player topPlayer, int leftTimes) {
		super(serial);
		if (topPlayer != null) {
			this.id = topPlayer.getId();
			this.name = topPlayer.getName();
			this.icon = topPlayer.getIcon();
			this.sex = topPlayer.getSex();
			this.level = topPlayer.getLevel();
		}
		this.num = leftTimes;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public byte getSex() {
		return sex;
	}

	public void setSex(byte sex) {
		this.sex = sex;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

}
